package com.mdd.service.refund;

import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse;
import com.alipay.api.response.AlipayTradeRefundResponse;
import com.mdd.validate.pay.RefundQuery;
import com.mdd.validate.pay.TradeRefundParams;

/**
 *
 * {@code @Description}
 * @Author 幻速
 * {@code @Date} 2023/10/30 18:48
 **/
public interface AlipayRefundService {
    /**
     * 统一收单交易退款查询
     * @param refundQuery 退款查询信息
     * @return AlipayTradeFastpayRefundQueryResponse
     */
    AlipayTradeFastpayRefundQueryResponse refundQuery(AlipayClient alipayClient, RefundQuery refundQuery) throws AlipayApiException;

    /**
     * 统一收单交易退款接口
     * @param tradeRefundParams 退款查询信息
     * @return AlipayTradeRefundResponse
     */
    AlipayTradeRefundResponse tradeRefund(AlipayClient alipayClient, TradeRefundParams tradeRefundParams) throws AlipayApiException;
}
